package com.scm.biz.impl;

import java.util.List;

import com.scm.bean.Modeldictionary;
import com.scm.bean.Purchaseorder;
import com.scm.bean.Vehicle;
import com.scm.biz.base.IPurchaseOrderManager;
import com.scm.dao.base.IPurchaseOrderDao;

public class PurchaseOrderManager implements IPurchaseOrderManager {
	private IPurchaseOrderDao pod;
	public IPurchaseOrderDao getPod() {
		return pod;
	}

	public void setPod(IPurchaseOrderDao pod) {
		this.pod = pod;
	}

	public List<Purchaseorder> querypurchaseorder(int start) {
		// TODO Auto-generated method stub
		return pod.querypurchaseorder(start);
	}

	public int querypurchaseordercount() {
		// TODO Auto-generated method stub
		int count=pod.querypurchaseordercount();
		int counts=count/15;
		if (count%15!=0) {
			counts++;
		}
		return counts;
	}

	public boolean addpurchaseorder(Purchaseorder po,String[] mydate) {
		// TODO Auto-generated method stub
		return pod.addpurchaseorder(po,mydate);
	}

	public Purchaseorder getidquerypurchaseorder(String id) {
		// TODO Auto-generated method stub
		return pod.getidquerypurchaseorder(id);
	}

	public List<Modeldictionary> querymodel() {
		// TODO Auto-generated method stub
		return pod.querymodel();
	}

	public boolean updatepurchaseOrder(Purchaseorder po, String[] mydate) {
		// TODO Auto-generated method stub
		return pod.updatepurchaseOrder(po, mydate);
	}

	public Purchaseorder getidqueryvehicle(String id) {
		// TODO Auto-generated method stub
		return pod.getidqueryvehicle(id);
	}

	public int quervehicle(String id) {
		// TODO Auto-generated method stub
		int count=pod.quervehicle(id);
		int counts=count/15;
		if (count%15!=0) {
			counts++;
		}
		return counts;
	}

	public List<Vehicle> quervehicle(int start,String id) {
		// TODO Auto-generated method stub
		return pod.quervehicle(start,id);
	}



}
